package com.elder.business.mapper;

import java.util.List;
import com.elder.business.domain.ElderlyApartmentActivities;
import org.apache.ibatis.annotations.Param;

/**
 * 公寓活动Mapper接口
 * 
 * @author zyk
 * @date 2023-11-26
 */
public interface ElderlyApartmentActivitiesMapper 
{
    /**
     * 查询公寓活动
     * 
     * @param id 公寓活动主键
     * @return 公寓活动
     */
    public ElderlyApartmentActivities selectElderlyApartmentActivitiesById(Long id);

    /**
     * 查询公寓活动列表
     * 
     * @param elderlyApartmentActivities 公寓活动
     * @return 公寓活动集合
     */
    public List<ElderlyApartmentActivities> selectElderlyApartmentActivitiesList(ElderlyApartmentActivities elderlyApartmentActivities);

    /**
     * 新增公寓活动
     * 
     * @param elderlyApartmentActivities 公寓活动
     * @return 结果
     */
    public int insertElderlyApartmentActivities(ElderlyApartmentActivities elderlyApartmentActivities);

    /**
     * 修改公寓活动
     * 
     * @param elderlyApartmentActivities 公寓活动
     * @return 结果
     */
    public int updateElderlyApartmentActivities(ElderlyApartmentActivities elderlyApartmentActivities);

    /**
     * 删除公寓活动
     * 
     * @param id 公寓活动主键
     * @return 结果
     */
    public int deleteElderlyApartmentActivitiesById(Long id);

    /**
     * 批量删除公寓活动
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteElderlyApartmentActivitiesByIds(Long[] ids);

    List<ElderlyApartmentActivities> getApartmentActivitiesList(@Param("startTime") Long startTime,@Param("endTime") Long endTime,@Param("activityName") String activityName,@Param("leaderName") String leaderName,@Param("status") Integer status);

    public Integer updateVideoActivitiesUrl(@Param("activityId") Long activityId,@Param("activityUrl") String activityUrl);

    public ElderlyApartmentActivities getApartmentActivitiesByActivityId(@Param("activityId") Long activityId);

    Integer updateActivitiesApply(@Param("activityId") Long activityId, @Param("applyStatus") Integer applyStatus, @Param("notes") String notes);
}
